// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

input[aria-hidden="true"] {
  display: none !important;
}

.el-upload__input {
  display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-button--primary {
  color: #fff;
  background-color: #3d7fff;
  border-color: #3d7fff;
}

.el-button--default:focus,
.el-button--default:hover {
  color: #3d7fff;
  border-color: rgb(158, 191, 255);
  background-color: rgb(236, 242, 255);
}

.el-button--primary:hover,
.el-button--primary:focus {
  color: #fff;
  background-color: rgb(119, 165, 255);
  border-color: rgb(119, 165, 255);
}

.el-button--primary.is-plain {
  color: #3d7fff;
  border-color: rgb(158, 191, 255);
  background-color: rgb(236, 242, 255);
}

.el-button--primary.is-plain:hover {
  background: #3d7fff;
  border-color: #3d7fff;
  color: #fff;
}

.el-table th.el-table__cell.is-leaf {
  border-bottom: unset;
}

.el-table::before {
  height: 0;
}

.el-button--text {
  color: #3d7fff;
  text-decoration: underline;
  user-select: all;
}

.el-button--text:hover {
  color: #3d7fff;
}

.el-dialog {
  margin-top: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

label {
  font-weight: inherit !important;
}

.el-input__inner:focus {
  border-color: #3d7fff;
}

.el-select {
  .is-focus {
    .el-input__inner {
      border-color: #3d7fff !important;
    }
  }
}

.el-select .el-input__inner:focus {
  border-color: #3d7fff;
}

.el-select-dropdown__item.selected {
  color: #3d7fff;
}

.el-radio__input.is-checked+.el-radio__label {
  color: #3d7fff;
}

.el-radio__input.is-checked .el-radio__inner {
  border-color: #3d7fff;
  background: #3d7fff;
}

.el-cascader .el-input .el-input__inner:focus,
.el-cascader .el-input.is-focus .el-input__inner {
  border-color: #3d7fff;
}

.el-cascader-node.in-active-path {
  color: #3d7fff;
}

.el-cascader-node.is-active {
  color: #3d7fff;
}

.el-date-table td.available:hover {
  color: #3d7fff;
}

.el-date-table td.today span {
  color: #3d7fff;
}

.el-date-table td.current:not(.disabled) span {
  background-color: #3d7fff;
}

.el-textarea__inner:focus {
  border-color: #3d7fff;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #3d7fff;
  border-color: #3d7fff;
}

.el-checkbox.is-bordered.is-checked {
  border-color: #3d7fff;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #3d7fff;
  border-color: #3d7fff;
}

.el-checkbox__input.is-checked+.el-checkbox__label {
  color: #3d7fff;
}

.el-dialog__headerbtn:focus .el-dialog__close {
  color: #3d7fff;
}

.el-dialog__headerbtn:hover .el-dialog__close {
  color: #3d7fff;
}

.el-table th.el-table__cell>.cell {
  font-weight: 400;
}

.el-upload--picture-card:hover,
.el-upload:focus {
  color: #3d7fff;
  border-color: #3d7fff;
}

.el-dropdown-menu__item:focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
  color: #3d7fff;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #3d7fff;
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: #3d7fff;
}

.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
  color: #3d7fff;
}

.el-radio-button__orig-radio:checked+.el-radio-button__inner {
  background-color: #3d7fff;
  border-color: #3d7fff;
}

.el-radio-button__inner:hover {
  color: #3d7fff;
}

.el-dialog__body {
  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 0;
}

.my-autocomplete {
  li {
    line-height: normal;
    padding: 7px 20px;
  }
}

.el-dropdown-menu {
  padding: 6px 4px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);

  .el-dropdown-menu__item {
    padding: 0 12px;
    // white-space: nowrap;
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.8);

    &:not(.is-disabled):hover {
      background-color: #f5f5f5;
      color: #000;
    }

    i {
      font-size: 15px;
    }
  }

  .el-dropdown-menu__item.is-disabled {
    color: #bbb;
  }

  .el-dropdown-menu__item--divided:before {
    margin: 0 -15px;
  }
}

.el-descriptions {
  :not(.is-bordered) .el-descriptions-item__cell {
    padding-bottom: 0;
  }

  .is-bordered .el-descriptions-item__cell {
    padding: 7px 10px;
    height: 36px;
    border: 1px solid #eff2f8;
  }

  .el-descriptions-item__label.is-bordered-label {
    background: #f5f8fe;
    color: #828a9d;
    font-size: 13px;
    text-align: center;
  }

}

.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  box-shadow: unset;
}

.el-form {
  .is-required {
    .el-form-item__label::before {
      content: '' !important;
      color: unset !important;
      margin-right: 0px !important;
    }

    .el-form-item__label::after {
      content: '*';
      color: #F56C6C;
      margin-left: 4px;
    }
  }
}

.price-popover {
  padding: 5px 0px;
}


.el-tabs__item.is-active {
  color: #3d7fff;
}

.el-tabs__item:hover {
  color: #3d7fff;
}

.el-tabs__active-bar {
  background-color: #3d7fff;
}